//
//  ByCoreRefreshGifFooter.m
//  beibei_ios
//
//  Created by pro on 16/5/3.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import "ByCoreRefreshGifFooter.h"

@implementation ByCoreRefreshGifFooter


- (void)prepare {
    
    [super prepare];
    
    self.stateLabel.hidden = YES;
    self.refreshingTitleHidden = YES;
    
//    self.stateLabel.font = FONT(14);
//    self.stateLabel.textColor = JM_THEME_COLOR;
    
    NSMutableArray *images = [[NSMutableArray alloc] init];
    for (int i = 0; i < 8; i ++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"load%i", i + 1]];
        [images addObject:image];
    }
    
    [self setImages:images forState:MJRefreshStateIdle];
    [self setImages:images forState:MJRefreshStateRefreshing];
    [self setImages:images forState:MJRefreshStatePulling];
    
}


- (void)endRefreshingWithNoMoreData {
    [super endRefreshingWithNoMoreData];
    self.hidden = YES;
}
- (void)resetNoMoreData {
    [super resetNoMoreData];
    self.hidden = NO;
}

@end
